package se;

import java.util.ArrayList;
import java.util.Deque;
import java.util.List;

public class Test2 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int n = 1;
        System.out.println(a&b);
        System.out.println(a|b);
        System.out.println(a^b);
        System.out.println(~a);
        System.out.println(a<<n); // 相当于 a*2^n
        System.out.println(a>>n); // 相当于 a/2^n
        int score = 92;
        if(score >= 90) {
            System.out.println("吃个大鸡腿");
        } else {
            System.out.println("挨个大嘴巴子");
        }

        if (score >= 90) {
            System.out.println("优秀");
        } else if (score >= 80 && score < 90) {
            System.out.println("良好");
        } else if (score >= 70 && score < 80) {
            System.out.println("中等");
        } else if (score >= 60 && score < 70) {
            System.out.println("及格");
        } else if (score >= 50 && score < 60) {
            System.out.println("不及格");
        } else {
            System.out.println("错误数据");
        }

        List<Integer> list = new ArrayList<Integer>();
    }
}
